package com.team7.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team7.common.entity.Teacher;
import com.team7.common.vo.TeacherVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: team7-Object02
 * @description: 教师dao接口
 * @author: 王子鑫
 * @create: 2021-10-18 22:29
 **/
public interface TeacherDao extends BaseMapper<Teacher> {

    //查询所有讲师信息
    Page<TeacherVo> findAllTeacher(@Param("page")Page<TeacherVo> page ,@Param(Constants.WRAPPER) Wrapper qw);

    //修改讲师状态
    int changeStatus(@Param("status") String status,@Param("id")String id);

    //修改讲师信息
    int updateTeacherInfo(TeacherVo teacherVo);

    //修改讲师姓名
    int updateTeacherName(TeacherVo teacherVo);

    //根据姓名查询讲师
    List<TeacherVo> getTeacherByName(TeacherVo teacherVo);
}
